Skip to contentSkip to conversation

New: [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

Bug 85579 [email protected] 1 participant 11 messages Oct 29, 2014 – May 24, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=85579

Bug ID: 85579
Summary: [bisected] piglit test crashes in
spec/glsl-1.50/execution/geometry/max-input-components
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]

Created attachment 108602
--> https://bugs.freedesktop.org/attachment.cgi?id=108602&action=edit
log when the test fails

Hi again guys. I've been getting some very weird piglit crashes, including one lockup, which I haven't yet been able to bisect.

Anyway, here's one I've been able to bisect.

The test spec/glsl-1.50/execution/geometry/max-input-components fails before commit 54de7099115502c561f5f51095e08dc0a52c71b7, and always crashes on commits after.

I have attached the piglit result logs from both versions. I'm not sure if the LLVM Register Spilling spam is relating to my other problems, or not.

Let me know if you need any more information.

Thanks,
sarnex

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #1 from sarnex <[email protected]> --- Created attachment 108603
--> https://bugs.freedesktop.org/attachment.cgi?id=108603&action=edit
log when the test crashes

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #2 from Michel Dänzer <[email protected]> --- Created attachment 108612
--> https://bugs.freedesktop.org/attachment.cgi?id=108612&action=edit
radeonsi: If compiling the vertex or geometry shader fails, skip the draw

Does this patch fix the crash?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #3 from sarnex <[email protected]> --- Created attachment 108624
--> https://bugs.freedesktop.org/attachment.cgi?id=108624&action=edit
patch crash

(In reply to Michel Dänzer from comment #2)

Quoted 4 lines

Created attachment 108612 [details]
radeonsi: If compiling the vertex or geometry shader fails, skip the draw

Does this patch fix the crash?

Hi Michel,

Unfortunately, it appears the patch has no effect. But, after updating my mesa to today's version, the test crashes very quickly, when it used to take over 3 minutes to fail or crash. Maybe this is related to the other llvm change?

I attached a log.

Thanks,
sarnex

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #4 from Michel Dänzer <[email protected]> ---
Can you run the test in gdb and attach a backtrace? From the logs you attached, the command line for running the test on your system is:

/usr/local/lib/piglit/bin/shader_runner /usr/local/bin/../lib/piglit/tests/spec/glsl-1.50/execution/geometry/max-input-components.shader_test -auto

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #5 from sarnex <[email protected]> --- Created attachment 108646
--> https://bugs.freedesktop.org/attachment.cgi?id=108646&action=edit
backtrace

(In reply to Michel Dänzer from comment #4)

Quoted 6 lines

Can you run the test in gdb and attach a backtrace? From the logs you attached, the command line for running the test on your system is:

/usr/local/lib/piglit/bin/shader_runner /usr/local/bin/../lib/piglit/tests/spec/glsl-1.50/execution/geometry/max- input-components.shader_test -auto

Hi Michel,

I compiled LLVM3.5 debug and Mesa debug, so hopefully there is enough information here. The backtrace is attached.

Thanks,
sarnex

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #6 from Michel Dänzer <[email protected]> --- (In reply to sarnex from comment #5)

Quoted 2 lines

I compiled LLVM3.5 debug and Mesa debug, so hopefully there is enough information here. The backtrace is attached.

That's a crash in LLVM. Does that also happen with Mesa commit 54de7099115502c561f5f51095e08dc0a52c71b7? If not, can you test my patch on top of that?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #7 from sarnex <[email protected]> --- Created attachment 108669
--> https://bugs.freedesktop.org/attachment.cgi?id=108669&action=edit
second bt

(In reply to Michel Dänzer from comment #6)

Quoted 7 lines

(In reply to sarnex from comment #5)

Quoted 2 lines

I compiled LLVM3.5 debug and Mesa debug, so hopefully there is enough information here. The backtrace is attached.

That's a crash in LLVM. Does that also happen with Mesa commit 54de7099115502c561f5f51095e08dc0a52c71b7? If not, can you test my patch on top of that?

Nope, it's a different crash. I incorrectly assumed it would be the same crash since on latest git vs the first commit where it crashes.

Backtrace attached.

Thanks and sorry for the confusion.
Sarnex

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #8 from sarnex <[email protected]> --- (In reply to Michel Dänzer from comment #6)

Quoted 7 lines

(In reply to sarnex from comment #5)

Quoted 2 lines

I compiled LLVM3.5 debug and Mesa debug, so hopefully there is enough information here. The backtrace is attached.

That's a crash in LLVM. Does that also happen with Mesa commit 54de7099115502c561f5f51095e08dc0a52c71b7? If not, can you test my patch on top of that?

Whoops, I forgot about your patch. It doesn't apply against commit 54de7099115502c561f5f51095e08dc0a52c71b7. If you get a chance could you update it, because I'd likely break everything trying to manually apply.

Thanks again,
sarnex

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

--- Comment #9 from Marek Olšák <[email protected]> --- I think there are 2 ways to fix this and we should do both:

1) Fix VGPR register spilling caused by indirect addressing into lots of registers. LLVM crashes when it attempts to do that. Those registers are just copies of shader inputs and outputs.

2)
Step A) Implement indirect addressing for VS outputs before GS and GS inputs. This means that we cannot store outputs at the end of shaders (using emit_epilogue), but we must store them when they occur as a destination register (using emit_store).

(BTW my tessellation branch contains modifications to emit_store that make it easier to re-implement it for shaders that use store instructions for outputs)

Step B) glsl_to_tgsi and/or some passes of the GLSL compiler may need to be modified not to move ins/outs into temporaries. I think the only pass that does that is the varying packing. The pass should be disabled or rewritten, because its current implementation isn't gonna fly with our hardware and is often the cause of unnecessary register spilling.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 85579] [bisected] piglit test crashes in spec/glsl-1.50/execution/geometry/max-input-components

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=85579

Samuel Pitoiset <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #10 from Samuel Pitoiset <[email protected]> --- Quite old bug. Can no longer be reproduced with mesa-git (51dc5e3df38), llvm-git (6f7f2057b76) and piglit-git (9cc5b2169). Closing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel